<%--
  Created by IntelliJ IDEA.
  User: WangJun
  Date: 2024/11/7
  Time: 11:29
  To change this template use File | Settings | File Templates.
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
int[] arr = {1,2,3};

request.setAttribute("array", arr);
%>

<c:forEach items="${array}" var="a" varStatus="s">
    ${a}...${s.index}...${s.count}<br>
</c:forEach>

</body>
</html>
